@NENE87 You thinker about career mode..
I've coded a single player career mode for LFS. It's easy to customise a career or season per fictional car brand!
Cool! Please let me know if you can get it started. Take a look at the file "how_to_run_java" to see the command for running the Java jar. Otherwise, the clojure command should work.
I've got a list of things i'd like to add;
Better feedback (points, season standings, etc etc)
Season requirements (currently you only need to finish all races in a season, no points or season result needed to unlock new cars/seasons)
'Graphical' interface with buttons (shift+i)
Configuration of AI difficulty
Variable AI difficulty during race
More realistic qualify behaviour (AI entering pits and rejoining)
Specify race distance (currently you can only specify n laps)
I've been trying to create something like this! You can configure your own careers/seasons/races. Have a look at this thread; https://www.lfs.net/forum/thread/95034
I've been trying to create something like this! You can configure your own careers/seasons/races. Have a look at this thread; https://www.lfs.net/forum/thread/95034
I've been fiddling around to create something new for LFS; lfs-career.
This software utilises the InSim protocol and lets you configure a single player career with multiple seasons. Each season consists of multiple races.
Extract the file lfs-career-v0.1.0.zip to a location of your liking.
Change the path "C:\LFS\data\setups" in config.edn to the data/setups folder of your installation location (if necessary).
Launch Live For Speed, choose single player and type "/insim 29999"
Start lfs-career by running "java -jar lfs-career-v0.1.0.jar" (in a command prompt)
When you see the following; "Type exit, quit or stop to quit lfs-career Connected with LFS S3 / 0.6U (insim-version 8)"
you know that lfs-career is running and succesfully connected to LFS. Fasten your seatbelts!
Ingame commands
In game you can start a career with "!career road", take part in a season by typing "!season uf1-sprint" and load a track, grid & race settings by typing "!race".
Configuration
You can configure your own career, have a look at "careers/road.edn" for an annotated example.
It's very simple, but some things might work different then you'd expect. Please let me know what you think/miss or if you find any bugs. Leave a reply or file an issue on Github.
I improved the client a bit and released v0.1.5-SNAPSHOT!
- It doesn't crash anymore when multiple packets are returned by LFS (e.g. when a IS_FIN packet is send)
- You can safely return a collection of packets.
- Added some throttling in the feedback loop to improve performance.
- Updated the main ns to be of better use.
- Created a better readme on github (https://github.com/verberktstan/clj-insim)
It works really nice and stable now. There are a lot of packets not yet parsed (properly), but it is a work in progress..
If you like Clojure, please try it out and let me know what you think! You can ofcourse report issues via github, would be nice to get some help.
I'm developing an InSim client in Clojure. At time of writing, it is just a library lets you create a very simple TCP client, parse packets received and return packets of binary data. Not all InSim packets are implemented.
My ultimate goal is to create a championship server with automatic ballast weight (BTCC style). This is out of scope for this library, but As i'm just taking this step by step i thought it'd be a good idea to share this library with you!
If you like Clojure and/or like to contribute please feel free to do so :-)